From: Ivan Molodetskikh Date: Sun, 31 Jul 2022 17:35:26 +0000 (-0700) Subject: Add shell_global_get_workspace_manager () X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~172 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1fd08e80ed9e1976ddc719aaedb83f4aa9f989de;p=gnome-shell.git Add shell_global_get_workspace_manager () It will be used in the subsequent commit. Part-of: --- diff --git a/src/shell-global.c b/src/shell-global.c index 60f078f3b..0ccdb1029 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -843,6 +843,17 @@ shell_global_get_display (ShellGlobal *global) return global->meta_display; } +/** + * shell_global_get_workspace_manager: + * + * Return value: (transfer none): The default #MetaWorkspaceManager + */ +MetaWorkspaceManager * +shell_global_get_workspace_manager (ShellGlobal *global) +{ + return global->workspace_manager; +} + /** * shell_global_get_window_actors: * diff --git a/src/shell-global.h b/src/shell-global.h index d5e77ea3f..8d8238ca2 100644 --- a/src/shell-global.h +++ b/src/shell-global.h @@ -13,13 +13,14 @@ G_BEGIN_DECLS #define SHELL_TYPE_GLOBAL (shell_global_get_type ()) G_DECLARE_FINAL_TYPE (ShellGlobal, shell_global, SHELL, GLOBAL, GObject) -ShellGlobal *shell_global_get (void); - -ClutterStage *shell_global_get_stage (ShellGlobal *global); -MetaDisplay *shell_global_get_display (ShellGlobal *global); -GList *shell_global_get_window_actors (ShellGlobal *global); -GSettings *shell_global_get_settings (ShellGlobal *global); -guint32 shell_global_get_current_time (ShellGlobal *global); +ShellGlobal *shell_global_get (void); + +ClutterStage *shell_global_get_stage (ShellGlobal *global); +MetaDisplay *shell_global_get_display (ShellGlobal *global); +GList *shell_global_get_window_actors (ShellGlobal *global); +GSettings *shell_global_get_settings (ShellGlobal *global); +guint32 shell_global_get_current_time (ShellGlobal *global); +MetaWorkspaceManager *shell_global_get_workspace_manager (ShellGlobal *global); /* Input/event handling */